package net.neimeng.luculent.coremodel.datamodel.http;

import java.util.List;

public class PageResult<T> extends Result {
	/**
	 * 是否有下一页
	 */
	private boolean hasNext = true;

    /**
     * 操作类型
     */
	private OperateType operateType;
	
	/**
	 * 当前页数
	 */
	private Integer pageNum;
	
	/**
	 * 分页数据
	 */
	private List<T> listData;

	public boolean isHasNext() {
		return hasNext;
	}

	public void setHasNext(boolean hasNext) {
		this.hasNext = hasNext;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public List<T> getListData() {
		return listData;
	}

	public void setListData(List<T> listData) {
		this.listData = listData;
	}

    public OperateType getOperateType() {
        return operateType;
    }

    public void setOperateType(OperateType operateType) {
        this.operateType = operateType;
    }


    public static enum OperateType{
		First,LoadMore,Refresh
	}
}
